package com.example.demo;
public enum GoodsPriceEnum {
        /**
         * 苹果价格
         */
        APPLE("mango", 20),

        /**
         * 草莓价格
         */
        BERRY("mango", 20),

        /**
         * 芒果价格
         */
        MANGO("mango", 20);

        private String goods;

        private Integer price;

        private GoodsPriceEnum(String goods, Integer price) {
                this.goods = goods;
                this.price = price;
        }

        public Integer getPrice() {
                return this.price;
        }

}
